package example.core.log;

import com.aliyun.fc.runtime.FunctionComputeLogger;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 默认实现阿里函数计算日志输出
 * @author 王振宇
 */
@Data
@Component
public class DefaultLogImpl implements FcLog {

    /**
     * 函数计算SDK提供的日志接口
     */
    public static FunctionComputeLogger functionComputeLogger;

    @Override
    public void trace(String var1) {
        functionComputeLogger.trace(var1);
    }

    @Override
    public void debug(String var1) {
        functionComputeLogger.trace(var1);
    }

    @Override
    public void info(String var1) {
        functionComputeLogger.trace(var1);
    }

    @Override
    public void warn(String var1) {
        functionComputeLogger.trace(var1);
    }

    @Override
    public void error(String var1) {
        functionComputeLogger.trace(var1);
    }

    @Override
    public void fatal(String var1) {
        functionComputeLogger.trace(var1);
    }
}
